import PlayDirect from '../../pages/store/PlayDirect';
import StorePanorama from '../../pages/store/StorePanorama';
import Promotion from '../../pages/store/StoreSwiper';
import BuyShow from '../../pages/store/StoreSwiper';
import StoreMaster from '../../pages/store/StoreSwiper';
import StoreGoods from '../../pages/store/StoreGoods';
export const routes_store = [
    {
        path: '/store',
        component (resolve) {
            require(['../../pages/store/StoreHome'], resolve)
        },
        children: [
            /*活动*/
            {
                path: 'promotion/:random',//以“/”开头的嵌套路径会被当作根路径，所以子路由上不用加“/”;在生成路由时，主路由上的path会被自动添加到子路由之前，所以子路由上的path不用在重新声明主路由上的path了。
                name: 'Promotion',
                component: Promotion,
                meta: {
                    userAuth:false,
                    thirdAuth:true,
                },
            },
            /*直播*/
            {
                path: 'playDirect/:random',
                name: 'PlayDirect',
                component: PlayDirect,
                meta: {
                    userAuth:false,
                    thirdAuth:true,
                },
            },
            /*实景*/
            {
                path: 'panorama/:random',
                name: 'StorePanorama',
                component: StorePanorama,
                meta: {
                    userAuth:false,
                    thirdAuth:true,
                },
            },
            /*商品*/
            {
                path: 'goods/:random',
                name: 'StoreGoods',
                component: StoreGoods,
                meta: {
                    userAuth:false,
                    thirdAuth:true,
                },
            },
            /*买家秀*/
            {
                path: 'buyShow/:random',
                name: 'BuyShow',
                component: BuyShow,
                meta: {
                    userAuth: false,
                    thirdAuth: true,
                },
            },
            /*大师*/
            {
                path: 'master/:random',
                name: 'StoreMaster',
                component: StoreMaster,
                meta: {
                    userAuth: false,
                    thirdAuth: true,
                },
            },
            /*处理官网改版以前的链接，可以删除，*/
            {
                path: 'home',
                name: 'testHome',
                component (resolve) {
                    require(['../../pages/store/StoreHome'], resolve)
                },
                meta: {
                    userAuth: false,
                    thirdAuth: true,
                },
            },
        ],
        meta: {
            userAuth: false,
            thirdAuth: true,
        },
    },
    {
        path: '/store/apply',
        component (resolve) {
            require(['../../pages/store/Apply'], resolve)
        },
        meta: {
            title: '商家入驻',
            userAuth: false,
            thirdAuth: false,
        },
    },
]
